Subscribe Us

Responsive Advertisement

Advertisement

1519 A codeforces solution in cpp

codeforces 1519 solution in cpp

by ujjal roy


#include<bits/stdc++.h>

using namespace std;
main()
{

    long long t,i,r,b,d;
    cin>>t;
    while(t--)
    {
        cin>>r>>b>>d;
        if(r>b)
        {
            long long int a=(r-1)/b;
            if(a<=d) cout<<"YES"<<endl;
            else cout<<"NO"<<endl;
        }
        else
        {

              long long int a=(b-1)/r;
            if(a<=d) cout<<"YES"<<endl;
            else cout<<"NO"<<endl;
        }
    }



    return 0;

}

Post a Comment

0 Comments